<?php

# this sets the initial values of some variables that are used globally


# ********************************************************
# *********************** ucitables **********************
# ********************************************************
# * this variable, $ucitables is for over-riding the default
#   values of the "ucitables" parameter of the HSPF "UCIObject"
#   this will be useful if updated version of HSPF change syntax, or
#   if a given project wants to have different default values for
#   a given UCI block, or if only a limited number of blocks should
#   be used.

$ucitables = array(
          'PPRINT-INFO'=>array(
                'tabledef'=>'create temp table perlndprintinfo (segstart integer, segend integer,atmp integer, snow integer, pwat integer, sed integer, pst integer, pwg integer, pqal integer, mstl integer, pest integer, nitr integer, phos integer, trac integer, pivl integer, pyr integer)',
                'tablename'=>'perlndprintinfo',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d',
                'paramcolumns'=>'atmp, snow, pwat, sed, pst, pwg, pqal, mstl, pest, nitr, phos, trac, pivl, pyr',
                'paramdefaults'=>"6,6,5,6,6,6,6,6,6,6,6,6,1,9",
                'ordercol'=>'segstart',
                'openline'=>'  PRINT-INFO',
                'closeline'=>'  END PRINT-INFO',
                'header'=>'*** x  - x ATMP SNOW PWAT  SED  PST  PWG PQAL MSTL PEST NITR PHOS TRAC',
                'parentblock'=>'PERLND',
                'keytable'=>'perlndgeninfo',
                'subblock'=>'PRINT-INFO'
                ),
          'PGEN-INFO'=>array(
                'tabledef'=>'create temp table perlndgeninfo (segstart integer, segend integer,luname varchar(32))',
                'tablename'=>'perlndgeninfo',
                'uciformat'=>'%5[^\n]%5[^\n]%30[^\]',
                'uciprint'=>'%5s%5s%-30s',
                'ordercol'=>'segstart',
                'openline'=>'  GEN-INFO',
                'closeline'=>'  END GEN-INFO',
                'header'=>'*** x -  x Land-use type ***',
                'parentblock'=>'PERLND',
                'subblock'=>'GEN-INFO'
                ),
          'IGEN-INFO'=>array(
                'tabledef'=>'create temp table implndgeninfo (segstart integer, segend integer,luname varchar(32))',
                'tablename'=>'implndgeninfo',
                'uciformat'=>'%5[^\n]%5[^\n]%30s',
                'uciprint'=>'%5s%5s%-30s',
                'ordercol'=>'segstart',
                'openline'=>'  GEN-INFO',
                'closeline'=>'  END GEN-INFO',
                'header'=>'*** x -  x Land-use type ***',
                'parentblock'=>'IMPLND',
                'subblock'=>'GEN-INFO'
                ),
          'RGEN-INFO'=>array(
                'tabledef'=>'create temp table rchresgeninfo (segstart integer, segend integer,rchname varchar(32), nexits integer, nin integer, nout integer, engl integer, metr integer, f1 integer,f2 integer,f3 integer)',
                'tablename'=>'rchresgeninfo',
                'uciformat'=>'%5[^\n]%5[^\n]%20[^\]%10d%10d%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%20s%5d%10d%5d%5d%5d%5d%5d%5d',
                'ordercol'=>'segstart',
                'openline'=>'  GEN-INFO',
                'closeline'=>'  END GEN-INFO',
                'header'=>'*** x -  x       Name        Nexits        in  out Engl Metr LKFG',
                'paramcolumns'=>'rchname,nexits, nin, nout,engl,metr, f1,f2,f3',
                'paramdefaults'=>"'reach',1,1,1,91,0,0,0,0",
                'parentblock'=>'RCHRES',
                'subblock'=>'GEN-INFO'
                ),
          'IMPERVIOUS'=>array(
                'tabledef'=>'create temp table impfrac (luname varchar(32), imppct float8)',
                'tablename'=>'impfrac',
                'impdefs'=>array(
                   array('Residential',0.30),
                   array('Commercial',0.48),
                   array('Transitional',0.10)
                   )
                ),
          'PERLND-ACTIVITY'=>array(
                'tabledef'=>'create temp table pactivity (segstart integer, segend integer, atmp integer, snow integer, pwat integer, sed integer, pst integer, pwg integer, pqal integer, mstl integer, pest integer, nitr integer, phos integer, trac integer)',
                'tablename'=>'pactivity',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d',
                'ordercol'=>'segstart',
                'openline'=>'  ACTIVITY',
                'closeline'=>'  END ACTIVITY',
                'header'=>'*** x -  x ATMP SNOW PWAT  SED  PST  PWG PQAL MSTL PEST NITR PHOS TRAC ***',
                'paramcolumns'=>'atmp, snow, pwat, sed, pst, pwg, pqal, mstl, pest, nitr, phos, trac',
                'paramdefaults'=>'0,0,1,0,0,0,0,0,0,0,0,0',
                'parentblock'=>'PERLND',
                'keytable'=>'perlndgeninfo',
                'subblock'=>'ACTIVITY'
                ),
          'IMPLND-ACTIVITY'=>array(
                'tabledef'=>'create temp table iactivity (segstart integer, segend integer, atmp integer, snow integer,iwat integer, sld integer, iwg integer, iqal integer)',
                'tablename'=>'iactivity',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d%5d',
                'ordercol'=>'segstart',
                'paramcolumns'=>'atmp, snow,iwat, sld, iwg, iqal',
                'paramdefaults'=>'0,0,1,0,0,0',
                'openline'=>'  ACTIVITY',
                'closeline'=>'  END ACTIVITY',
                'header'=>'*** x -  x ATMP SNOW IWAT  SLD  IWG IQAL',
                'parentblock'=>'IMPLND',
                'keytable'=>'implndgeninfo',
                'subblock'=>'ACTIVITY'
                ),
          'RCHRES-ACTIVITY'=>array(
                'tabledef'=>'create temp table ractivity (segstart integer, segend integer, hyfg integer, adfg integer, cnfg integer, htfg integer, sdfg integer, gqfg integer, oxfg integer, nufg integer, pkfg integer, phfg integer)',
                'tablename'=>'ractivity',
                'paramcolumns'=>'hyfg, adfg, cnfg, htfg, sdfg, gqfg, oxfg, nufg, pkfg, phfg',
                'paramdefaults'=>'1,0,0,0,0,0,0,0,0,0',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d',
                'ordercol'=>'segstart',
                'openline'=>'  ACTIVITY',
                'closeline'=>'  END ACTIVITY',
                'header'=>'*** x -  x HYFG AdFG CNFG HTFG SdFG GQFG OXFG NUFG PKFG PHFG',
                'parentblock'=>'RCHRES',
                'keytable'=>'rchresgeninfo',
                'subblock'=>'ACTIVITY'
                ),
          'RCHRES-PRINT-INFO'=>array(
                'tabledef'=>'create temp table rprintinfo (segstart integer, segend integer, hydr integer, adca integer, cons integer, heat integer, sed integer, gql integer, oxrx integer, nutr integer, plnk integer, phcb integer, pivl integer, pyr integer)',
                'tablename'=>'rprintinfo',
                'paramcolumns'=>'hydr,adca,cons,heat,sed,gql,oxrx,nutr,plnk,phcb,pivl,pyr',
                'paramdefaults'=>'6,6,6,6,6,5,6,6,6,6,1,9',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d',
                'ordercol'=>'segstart',
                'header'=>'*** x -  x HYDR ADCA CONS HEAT  SED  GQL OXRX NUTR PLNK PHCB PIVL  PYR',
                'openline'=>'  PRINT-INFO',
                'closeline'=>'  END PRINT-INFO',
                'parentblock'=>'RCHRES',
                'keytable'=>'rprintinfo',
                'subblock'=>'PRINT-INFO'
                ),
          'RCHRES-NCONS'=>array(
                'tabledef'=>'create temp table rncons (segstart integer, segend integer, numcons integer)',
                'tablename'=>'rncons',
                'paramcolumns'=>'numcons',
                'paramdefaults'=>'1',
                'uciformat'=>'%5[^\n]%5[^\n]%5d',
                'uciprint'=>'%5s%5s%5d',
                'ordercol'=>'segstart',
                'openline'=>'  NCONS',
                'closeline'=>'  END NCONS',
                'header'=>'*** x -  x NCONS',
                'parentblock'=>'RCHRES',
                'keytable'=>'rchresgeninfo',
                'subblock'=>'NCONS'
                ),
          'CONS-AD-FLAGS'=>array(
                'tabledef'=>'create temp table consadflags (segstart integer, segend integer, f1 integer,c1 integer,f2 integer,c2 integer,f3 integer,c3 integer,f4 integer,c4 integer,f5 integer,c5 integer,f6 integer,c6 integer,f7 integer,c7 integer,f8 integer,c8 integer,f9 integer,c9 integer,f10 integer,c10 integer)',
                'tablename'=>'consadflags',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'f1, c1, f2, c2, f3, c3, f4 ,c4 ,f5 ,c5 ,f6 ,c6 ,f7 ,c7 ,f8 ,c8 ,f9 ,c9 ,f10 ,c10',
                'paramdefaults'=>'0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  CONS-AD-FLAGS',
	            'closeline'=>'  END CONS-AD-FLAGS',
	            'header'=>'*** x -  x CONS1  CONS2  CONS3  CONS4  CONS5  CONS6  CONS7  CONS8  CONS9  QAL10',
                'uciformat'=>'%5[^\n]%5[^\n] %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d',
                'uciprint'=>'%5s%5s %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d %3d%3d',
                'parentblock'=>'RCHRES',
                'subblock'=>'CONS-AD-FLAGS'
                ),
          'CONS-QALDATA'=>array(
                'tabledef'=>'create temp table consqaldata (segstart integer, segend integer, gqid varchar(15), dqal float8, concid varchar(4),conv float8, qtyid varchar(8))',
                'tablename'=>'consqaldata',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'gqid, dqal, concid, conv, qtyid',
                'paramdefaults'=>'\'TDS\',0.0,\'mg/L\',0.03531464,\'mg\'',
	            'ordercol'=>'segstart',
                'openline'=>'  CONS-QALDATA',
	            'closeline'=>'  END CONS-QALDATA',
	            'header'=>'*** RCHRES                GQID      DQAL    CONCID      CONV     QTYID',
                'uciformat'=>'%5[^\n]%5[^\n]%20[^\n]%10f      %4s%10f%  8s',
                'uciprint'=>'%5s%5s%-20s%8.1f      %4s%5.4f%  8s',
                'parentblock'=>'RCHRES',
                'subblock'=>'CONS-QALDATA'
                ),
          'PWAT-PARM1'=>array(
                'tabledef'=>'create temp table pwatparm1 (segstart integer, segend integer,csno integer,rtop integer,uzfg integer,vcs integer,vuz integer, vnn integer,vifw integer,virc integer,vle integer,iffc integer, hwt integer, irrg integer)',
                'keytable'=>'perlndgeninfo',
                'ordercol'=>'segstart',
                'paramcolumns'=>'csno,rtop,uzfg,vcs,vuz,vnn,vifw,virc,vle,iffc,hwt, irrg',
                'paramdefaults'=>'0,1,1,0,0,0,0,0,0,0,0,0',
                'tablename'=>'pwatparm1',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d%5d',
	            'openline'=>'  PWAT-PARM1',
	            'closeline'=>'  END PWAT-PARM1',
	            'header'=>'*** x -  x CSNO RTOP UZFG  VCS  VUZ  VNN VIFW VIRC  VLE IFFC  HWT IRRG',
                'parentblock'=>'PERLND',
                'subblock'=>'PWAT-PARM1'
                ),
          'PWAT-PARM2'=>array(
                'tabledef'=>'create temp table pwatparm2 (segstart integer, segend integer, forest float8,lzsn float8,infilt float8,lsur float8,slsur float8,kvary float8,agwrc float8)',
                'tablename'=>'pwatparm2',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'forest,lzsn,infilt,lsur,slsur,kvary,agwrc',
                'paramdefaults'=>'0.9,7.0,0.20,200.0,0.05,0.0,0.98',
                'uciformat'=>'%5[^\n]%5[^\n]%10f%10f%10f%10f%10f%10f%10f',
                'uciprint'=>'%5s%5s%6.3f%6.3f%5.4f%7.2f%5.4f%6.3f%6.3f',
	            'ordercol'=>'segstart',
	            'openline'=>'  PWAT-PARM2',
	            'closeline'=>'  END PWAT-PARM2',
	            'header'=>'*** x -  x    FOREST      LZSN    INFILT      LSUR     SLSUR     KVARY     AGWRC',
                'parentblock'=>'PERLND',
                'subblock'=>'PWAT-PARM2'
                ),
          'PWAT-PARM3'=>array(
                'tabledef'=>'create temp table pwatparm3 (segstart integer, segend integer, petmax float8, petmin float8, infexp float8, infild float8, deepfr float8,basetp float8,agwetp float8)',
                'tablename'=>'pwatparm3',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'petmax, petmin, infexp, infild, deepfr,basetp,agwetp',
                'paramdefaults'=>'40.0,35.0,2.0,2.0,0.01,0.01,0.0',
	            'ordercol'=>'segstart',
	            'openline'=>'  PWAT-PARM3',
	            'closeline'=>'  END PWAT-PARM3',
	            'header'=>'*** x -  x    PETMAX    PETMIN    INFEXP    INFILD    DEEPFR    BASETP    AGWETP',
                'uciformat'=>'%5[^\n]%5[^\n]%10f%10f%10f%10f%10f%10f%10f',
                'uciprint'=>'%5s%5s%6.3f%6.3f%6.3f%6.3f%6.3f%6.3f%6.3f',
                'parentblock'=>'PERLND',
                'subblock'=>'PWAT-PARM3'
                ),
          'PWAT-PARM4'=>array(
                'tabledef'=>'create temp table pwatparm4 (segstart integer, segend integer, cepsc float8, uzsn float8, nsur float8, intfw float8, irc float8, lzetp float8)',
                'tablename'=>'pwatparm4',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'cepsc, uzsn, nsur, intfw, irc, lzetp',
                'paramdefaults'=>'0.2,1.0,0.10,1.0,0.5,0.5',
	            'ordercol'=>'segstart',
	            'openline'=>'  PWAT-PARM4',
	            'closeline'=>'  END PWAT-PARM4',
	            'header'=>'*** x -  x     CEPSC      UZSN      NSUR     INTFW       IRC     LZETP',
                'uciformat'=>'%5[^\n]%5[^\n]%10f%10f%10f%10f%10f%10f',
                'uciprint'=>'%5s%5s%6.3f%6.3f%6.3f%6.3f%6.3f%6.3f',
                'parentblock'=>'PERLND',
                'subblock'=>'PWAT-PARM4'
                ),
          'PWAT-STATE1'=>array(
                'tabledef'=>'create temp table pwatstate1 (segstart integer, segend integer, ceps float8, surs float8, uzs float8, ifws float8, lzs float8, agws float8, gwvs float8)',
                'tablename'=>'pwatstate1',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'ceps, surs, uzs, ifws, lzs, agws, gwvs',
                'paramdefaults'=>'0.01,0.01,0.3,0.01,1.5,0.01,0.01',
	            'ordercol'=>'segstart',
	            'openline'=>'  PWAT-STATE1',
	            'closeline'=>'  END PWAT-STATE1',
	            'header'=>'*** x -  x      CEPS      SURS       UZS      IFWS       LZS      AGWS      GWVS',
                'uciformat'=>'%5[^\n]%5[^\n]%10f%10f%10f%10f%10f%10f%10f',
                'uciprint'=>'%5s%5s%6.3f%6.3f%6.3f%6.3f%6.3f%6.3f%6.3f',
                'parentblock'=>'PERLND',
                'subblock'=>'PWAT-STATE1'
                ),
          'IWAT-PARM1'=>array(
                'tabledef'=>'create temp table iwatparm1 (segstart integer, segend integer,csno integer,rtop integer,vrs integer,vnn integer,rtli integer)',
                'keytable'=>'implndgeninfo',
                'ordercol'=>'segstart',
                'paramcolumns'=>'csno,rtop,vrs,vnn,rtli',
                'paramdefaults'=>'0,0,0,0,0',
                'tablename'=>'iwatparm1',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d',
                'openline'=>'  IWAT-PARM1',
                'closeline'=>'  END IWAT-PARM1',
                'header'=>'*** x -  x CSNO RTOP  VRS  VNN RTLI',
                'parentblock'=>'IMPLND',
                'subblock'=>'IWAT-PARM1'
                ),
          'IWAT-PARM2'=>array(
                'tabledef'=>'create temp table iwatparm2 (segstart integer, segend integer, lsur float8,slsur float8,nsur float8,retsc float8)',
                'tablename'=>'iwatparm2',
                'keytable'=>'implndgeninfo',
                'paramcolumns'=>'lsur,slsur,nsur,retsc',
                'paramdefaults'=>'300.,0.1,0.1,0.1',
                'uciformat'=>'%5[^\n]%5[^\n]%10f%10f%10f%10f',
                'uciprint'=>'%5s%5s%7.2f%5.4f%6.3f%6.3f',
                'ordercol'=>'segstart',
                'openline'=>'  IWAT-PARM2',
                'closeline'=>'  END IWAT-PARM2',
                'header'=>'*** x -  x      LSUR     SLSUR      NSUR     RETSC',
                'parentblock'=>'IMPLND',
                'subblock'=>'IWAT-PARM2'
                ),
          'IWAT-PARM3'=>array(
                'tabledef'=>'create temp table iwatparm3 (segstart integer, segend integer, petmax float8, petmin float8)',
                'tablename'=>'iwatparm3',
                'keytable'=>'implndgeninfo',
                'paramcolumns'=>'petmax, petmin',
                'paramdefaults'=>'40.0,35.0',
                'ordercol'=>'segstart',
                'openline'=>'  IWAT-PARM3',
                'closeline'=>'  END IWAT-PARM3',
                'header'=>'*** x -  x    PETMAX    PETMIN',
                'uciformat'=>'%5[^\n]%5[^\n]%10f%10f',
                'uciprint'=>'%5s%5s%6.3f%6.3f',
                'parentblock'=>'IMPLND',
                'subblock'=>'IWAT-PARM3',
                'defaultoutput'=>'grouped'
                ),
          'IWAT-STATE1'=>array(
                'tabledef'=>'create temp table iwatstate1 (segstart integer, segend integer, rets float8, surs float8)',
                'tablename'=>'iwatstate1',
                'keytable'=>'implndgeninfo',
                'paramcolumns'=>'rets, surs',
                'paramdefaults'=>'0.01,0.01',
	            'ordercol'=>'segstart',
	            'openline'=>'  IWAT-STATE1',
	            'closeline'=>'  END IWAT-STATE1',
	            'header'=>'*** x -  x      RETS      SURS',
                'uciformat'=>'%5[^\n]%5[^\n]%10f%10f',
                'uciprint'=>'%5s%5s%6.3f%6.3f',
                'parentblock'=>'IMPLND',
                'subblock'=>'IWAT-STATE1'
                ),
          'HYDR-PARM1'=>array(
                'tabledef'=>'create temp table hydrparm1 (segstart integer, segend integer, vconfg integer, aux1fg integer, aux2fg integer, aux3fg integer, odfvfg1 integer, odfvfg2 integer, odfvfg3 integer, odfvfg4 integer, odfvfg5 integer, odgvfg1 integer, odgvfg2 integer, odgvfg3 integer, odgvfg4 integer, odgvfg5 integer, funct1 integer, funct2 integer, funct3 integer, funct4 integer, funct5 integer)',
                'tablename'=>'hydrparm1',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'vconfg, aux1fg, aux2fg, aux3fg, odfvfg1, odfvfg2, odfvfg3, odfvfg4, odfvfg5, odgvfg1, odgvfg2, odgvfg3, odgvfg4, odgvfg5, funct1, funct2, funct3, funct4, funct5',
                'paramdefaults'=>'0,1,1,1,4,0,0,0,0,0,0,0,0,0,1,1,1,1,1',
                'ordercol'=>'segstart',
 	            'openline'=>'  HYDR-PARM1',
	            'closeline'=>'  END HYDR-PARM1',
	            'header'=>'*** RCHRES  VC A1 A2 A3  OdgVFG for each *** ODGTFG for each     FUNCT  for each',
	            'uciformat'=>'%5[^\n]%5[^\n]%4d%3d%3d%3d%5d%3d%3d%3d%3d%8d%3d%3d%3d%3d%8d%3d%3d%3d%3d',
                'uciprint'=>'%5s%5s%4d%3d%3d%3d%5d%3d%3d%3d%3d%8d%3d%3d%3d%3d%8d%3d%3d%3d%3d',
                'parentblock'=>'RCHRES',
                'subblock'=>'HYDR-PARM1'
                ),
          'HYDR-PARM2'=>array(
                'tabledef'=>'create temp table hydrparm2 (segstart integer, segend integer, FTBW float8,FTBU float8,LEN float8,DELTH float8,STCOR float8,KS float8,DB50 float8)',
                'tablename'=>'hydrparm2',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'ftbw, ftbu, len, delth, stcor, ks, db50',
                'paramdefaults'=>'0.0,segstart,1.0,30.,3.2,0.5,0.01',
                'ordercol'=>'segstart',
                'openline'=>'  HYDR-PARM2',
                'closeline'=>'  END HYDR-PARM2',
                'header'=>'*** RCHRES FTBW FTBU       LEN     DELTH     STCOR        KS      DB50',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%10f%10f%10f%10f%10f',
                'uciprint'=>'%5s%5s%5s%5s%7.2f%7.2f%7.2f%7.2f%7.2f',
                'parentblock'=>'RCHRES',
                'subblock'=>'HYDR-PARM2'
                ),
          'PLOTINFO'=>array(
                'tabledef'=>'create temp table plotinfo (segstart integer, segend integer, fileno integer, npt integer, nms integer, labl integer, pyr integer, pivl integer, type integer)',
                'tablename'=>'plotinfo',
                'ordercol'=>'segstart',
	            'openline'=>'  PLOTINFO',
	            'closeline'=>'  END PLOTINFO',
                'keytable'=>'plotinfo',
	            'header'=>'*** x -  x FILE  NPT  NMN LABL  PYR PIVL TYPE',
	            'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d%5d%5d',
                'parentblock'=>'PLTGEN',
                'subblock'=>''
                ),
          'GEN-LABELS'=>array(
                'tabledef'=>'create temp table genlabels (segstart integer, segend integer, ptitle varchar(64), punits varchar(10))',
                'tablename'=>'genlabels',
                'ordercol'=>'segstart',
                'keytable'=>'plotinfo',
	            'openline'=>'  GEN-LABELS',
	            'closeline'=>'  END GEN-LABELS',
                'paramcolumns'=>'ptitle, punits',
	            'paramdefaults'=>"'Flow', 'cfs'",
	            'header'=>'    # -  #<----------------Title----------------->   ***    <------Y axis------>',
	            'uciformat'=>'%5[^\n]%5[^\n]%50[^\]%10[^\]',
                'uciprint'=>'%5s%5s%-50s%10s',
                'parentblock'=>'PLTGEN',
                'subblock'=>'GEN-LABELS'
                ),
          'CURV-DATA'=>array(
                'tabledef'=>'create temp table curvdata (segstart integer, segend integer, label varchar(64), linetype varchar(10), inteqv integer, colcode integer, trancode varchar(8))',
                'tablename'=>'curvdata',
                'ordercol'=>'segstart',
                'keytable'=>'plotinfo',
	            'openline'=>'  CURV-DATA',
	            'closeline'=>'  END CURV-DATA',
                'paramcolumns'=>'label , linetype, inteqv, colcode, trancode',
	            'paramdefaults'=>"'Flow', '', 5,1,'AVER'",
	            'header'=>'    # -  #    <-Curve label--> Line Intg  Col Tran ***',
	            'uciformat'=>'%5[^\n]%5[^\n]%-20s%5s%5s%5s%5s',
                'uciprint'=>'%5s%5s     %-15s%5s%5s%5s%5s',
                'parentblock'=>'PLOTINFO',
                'subblock'=>'CURV-DATA'
                ),
          'SCALING'=>array(
                'tabledef'=>'create temp table scaling (segstart integer, segend integer, ymin float8, ymax float8, ivlin float8)',
                'tablename'=>'scaling',
                'ordercol'=>'segstart',
	            'openline'=>'  SCALING',
                'keytable'=>'plotinfo',
                'paramcolumns'=>'ymin,ymax,ivlin',
	            'paramdefaults'=>'0.0,1000.0,20.0',
	            'closeline'=>'  END SCALING',
	            'header'=>'    # -  #      YMIN      YMAX     IVLIN ***',
	            'uciformat'=>'%5[^\n]%5[^\n]%10d%10d%10d',
                'uciprint'=>'%5s%5s%10d%10d%10d',
                'parentblock'=>'PLTGEN',
                'subblock'=>'SCALING'
                ),
          'MUTSINFO'=>array(
                'tabledef'=>'create temp table mutsinfo (segstart integer, segend integer, fileno integer, npt integer, nms integer, nli integer, msfg integer)',
                'tablename'=>'mutsinfo',
                'ordercol'=>'segstart',
  	            'openline'=>'  MUTSINFO',
	            'closeline'=>'  END MUTSINFO',
	            'header'=>'*** MUTSIN  MFL  NPT  NMN  NLI MSFG',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d',
                'parentblock'=>'MUTSINFO',
                'subblock'=>''
                ),
          'FILES'=>array(
                'tabledef'=>'create temp table files (handle varchar(16), fileno integer, filepath varchar(128))',
                'tablename'=>'files',
 	            'openline'=>'FILES',
	            'closeline'=>'END FILES',
	            'header'=>'<FILE>  <UN#>***<----FILE NAME------------------------------------------------->',
                'uciformat'=>'%6[^\n]  %5[^\n]   %64s',
                'uciprint'=>'%-6s  %5d   %-64s',
                'parentblock'=>'FILES',
                'subblock'=>''
   			    ),
          'SCHEMATIC'=>array(
                'tabledef'=>'create temp table schematic (sname varchar(16), ssegno integer, blankval varchar(32),areafactor float,dname varchar(16), dsegno integer, mlno integer)',
   			    'tablename'=>'schematic',
                'keytable'=>'rchresgeninfo',
 	            'openline'=>'SCHEMATIC',
                'ordercol'=>'dname,dsegno,mlno,sname,ssegno',
	            'closeline'=>'END SCHEMATIC',
	            'header'=>'<Name>   x                  <-factor->     <Name>   x        ***        x x',
                'uciformat'=>'%6[^\n]%4[^\n]%18[^\n]%10[^\n]%11s%4d%7d',
                'uciprint'=>'%-6s%4s%18s%10s     %-6s%4d%7d',
                'parentblock'=>'SCHEMATIC',
                'subblock'=>''
   			    ),
          'OPN SEQUENCE'=>array(
   	            'tabledef'=>'create temp table opnsequence (sname varchar(16), ssegno integer)',
   		        'tablename'=>'opnsequence',
                'ordercol'=>'oid',
 	            'openline'=>'OPN SEQUENCE',
	            'closeline'=>'END OPN SEQUENCE',
	            'header'=>'    INGRP              INDELT',
                'uciformat'=>'      %6s     %3d',
                'uciprint'=>'      %-6s     %3d',
                'parentblock'=>'OPN SEQUENCE',
                'subblock'=>''
   			    ),
          'MASS-LINK'=>array(
   			    'tabledef'=>'create temp table masslink (sname varchar(16), ssegno integer)',
   			    'tablename'=>'masslink',
 	            'openline'=>'  MASS-LINK',
	            'closeline'=>'  END MASS-LINK',
	            'header'=>'',
                'uciformat'=>'      %6s     %3d',
                'uciprint'=>'      %-6s     %3d',
                'parentblock'=>'MASS-LINK',
                'subblock'=>''
   			    ),
          'PNQUALS'=>array(
                'tabledef'=>'create temp table pnquals (segstart integer, segend integer, nquals integer)',
                'tablename'=>'pnquals',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'nquals',
                'paramdefaults'=>'1',
	            'ordercol'=>'segstart',
 	            'openline'=>'  NQUALS',
	            'closeline'=>'  END NQUALS',
	            'header'=>'*** x -  xNQUAL',
                'uciformat'=>'%5[^\n]%5[^\n]%5d',
                'uciprint'=>'%5s%5s%5d',
                'parentblock'=>'PERLND',
                'subblock'=>'NQUALS',
                'defaultoutput'=>'grouped'
                ),
          'INQUALS'=>array(
                'tabledef'=>'create temp table inquals (segstart integer, segend integer, nquals integer)',
                'tablename'=>'inquals',
                'keytable'=>'implndgeninfo',
                'paramcolumns'=>'nquals',
                'paramdefaults'=>'1',
	            'ordercol'=>'segstart',
 	            'openline'=>'  NQUALS',
	            'closeline'=>'  END NQUALS',
	            'header'=>'*** x -  xNQUAL',
                'uciformat'=>'%5[^\n]%5[^\n]%5d',
                'uciprint'=>'%5s%5s%5d',
                'parentblock'=>'IMPLND',
                'subblock'=>'NQUALS',
                'defaultoutput'=>'grouped'
                ),
          'PQUAL-PROPS'=>array(
                'tabledef'=>'create temp table pqualprops (segstart integer, segend integer, qualid varchar(10),qtid varchar(10),qsd integer,vpfw integer,vpfs integer,qso integer,vqo integer,qifw integer,viqc integer,qagw integer,vaqc integer)',
                'tablename'=>'pqualprops',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'qualid, qtid, qsd, vpfw, vpfs, qso, vqo, qifw, viqc, qagw, vaqc',
                'paramdefaults'=>'\'FECAL_COLI\',0,0,0,0,0,0,0,0,0,0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  QUAL-PROPS',
	            'closeline'=>'  END QUAL-PROPS',
	            'header'=>'*** x -  x    QUALID      QTID  QSD VPFW VPFS  QSO  VQO QIFW VIQC QAGW VAQC',
                'uciformat'=>'%5[^\n]%5[^\n]%15[^\]',
                'uciprint'=>'%5s%5s%15s%5s%5d%5d%5d%5d%5d%5d%5d%5d%5d',
                'parentblock'=>'PERLND',
                'subblock'=>'QUAL-PROPS',
                'defaultoutput'=>'grouped'
                ),
          'PQUAL-INPUT'=>array(
                'tabledef'=>'create temp table pqualinput (segstart integer, segend integer, sqo float8,potfw float8,potfs float8,acqop float8,sqolim float8,wsqop float8,ioqc float8,aoqc float8)',
                'tablename'=>'pqualinput',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'sqo, potfw, potfs, acqop, sqolim, wsqop, ioqc, aoqc',
                'paramdefaults'=>'1.00E+00,0.00E+00,0.00E+00,1.00E+00,1.00E+00,0.0100,1.00E+03,0.00E+00',
	            'ordercol'=>'segstart',
 	            'openline'=>'  QUAL-INPUT',
	            'closeline'=>'  END QUAL-INPUT',
	            'header'=>'***            SQO   POTFW   POTFS   ACQOP  SQOLIM   WSQOP    IOQC    AOQC',
                'uciformat'=>'%5[^\n]%5[^\n]%8f%8f%8f%8f%8f%8f%8f%8f',
                'uciprint'=>'%5s%5s%5.2f%5.2f%5.2f%5.2f%5.2f%5.2f   %sc0%5.2f',
                'parentblock'=>'PERLND',
                'subblock'=>'QUAL-INPUT'
                ),
          'IQUAL-PROPS'=>array(
                'tabledef'=>'create temp table iqualprops (segstart integer, segend integer,qualid varchar(10),qtid varchar(10),qsd integer,vpfw integer,qso integer,vqo integer)',
                'tablename'=>'iqualprops',
                'keytable'=>'implndgeninfo',
                'paramcolumns'=>'qualid, qtid, qsd, vpfw, qso, vqo',
                'paramdefaults'=>'\'FECAL_COLI\',0,0,0,0,0',
	            'ordercol'=>'segstart',
                'openline'=>'  QUAL-PROPS',
	            'closeline'=>'  END QUAL-PROPS',
	            'header'=>'*** x -  x      QUALID    QTID  QSD VPFW  QSO  VQO',
                'uciformat'=>'%5[^\n]%5[^\n]%15[^\]',
                'uciprint'=>'%5s%5s%15s%5s%5d%5d%5d%5d',
                'parentblock'=>'IMPLND',
                'subblock'=>'QUAL-PROPS',
                'defaultoutput'=>'grouped'
                ),
          'IQUAL-INPUT'=>array(
                'tabledef'=>'create temp table iqualinput (segstart integer, segend integer, sqo float8,potfw float8,acqop float8,sqolim float8,wsqop float8)',
                'tablename'=>'iqualinput',
                'keytable'=>'implndgeninfo',
                'paramcolumns'=>'sqo, potfw, acqop, sqolim, wsqop',
                'paramdefaults'=>'0.00E+00,0.00E+00,0.00E+00,0.00E+00,0.0300',
	            'ordercol'=>'segstart',
  	            'openline'=>'  QUAL-INPUT',
 	            'closeline'=>'  END QUAL-INPUT',
	            'header'=>'***            SQO   POTFW   ACQOP  SQOLIM   WSQOP',
                'uciformat'=>'%5[^\n]%5[^\n]%8f%8f%8f%8f%8f',
                'uciprint'=>'%5s%5s%5.2f%5.2f%5.2f%5.2f%5.2f',
                'parentblock'=>'IMPLND',
                'subblock'=>'QUAL-INPUT'
                ),
          'PQL-AD-FLAGS'=>array(
                'tabledef'=>'create temp table pqladflags (segstart integer, segend integer, f1 integer,c1 integer,f2 integer,c2 integer,f3 integer,c3 integer, f4 integer, c4 integer, f5 integer, c5 integer, f6 integer, c6 integer, f7 integer, c7 integer, f8 integer, c8 integer, f9 integer, c9 integer, f10 integer, c10 integer)',
                'tablename'=>'pqladflags',
                'keytable'=>'pqladflags',
                'paramcolumns'=>'f1, c1, f2, c2, f3, c3, f4, c4, f5, c5, f6, c6, f7, c7, f8, c8, f9, c9, f10, c10',
                'paramdefaults'=>'-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  PQL-AD-FLAGS',
	            'closeline'=>'  END PQL-AD-FLAGS',
	            'header'=>'*** x -  x  QUAL1  QUAL2  QUAL3  QUAL4  QUAL5  QUAL6  QUAL7  QUAL8  QUAL9  QUAL10',
                'uciformat'=>'%5[^\n]%5[^\n]%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d',
                'uciprint'=>'%5s%5s%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d',
                'parentblock'=>'PERLND',
                'subblock'=>'PQL-AD-FLAGS'
                ),
          'IQL-AD-FLAGS'=>array(
                'tabledef'=>'create temp table iqladflags (segstart integer, segend integer, f1 integer,c1 integer,f2 integer,c2 integer,f3 integer,c3 integer, f4 integer, c4 integer, f5 integer, c5 integer, f6 integer, c6 integer, f7 integer, c7 integer, f8 integer, c8 integer, f9 integer, c9 integer, f10 integer, c10 integer)',
                'tablename'=>'iqladflags',
                'keytable'=>'iqladflags',
                'paramcolumns'=>'f1, c1, f2, c2, f3, c3, f4, c4, f5, c5, f6, c6, f7, c7, f8, c8, f9, c9, f10, c10',
                'paramdefaults'=>'-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  IQL-AD-FLAGS',
	            'closeline'=>'  END IQL-AD-FLAGS',
	            'header'=>'*** x -  x  QUAL1  QUAL2  QUAL3  QUAL4  QUAL5  QUAL6  QUAL7  QUAL8  QUAL9  QUAL10',
                'uciformat'=>'%5[^\n]%5[^\n]%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d',
                'uciprint'=>'%5s%5s%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d%4d%3d',
                'parentblock'=>'IMPLND',
                'subblock'=>'IQL-AD-FLAGS'
                ),
          'ADCALC-DATA'=>array(
                'tabledef'=>'create temp table adcalcdata (segstart integer, segend integer, crrat float8, vol float8)',
                'tablename'=>'adcalcdata',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'crrat, vol',
                'paramdefaults'=>'1.7,100.',
	            'ordercol'=>'segstart',
 	            'openline'=>'  ADCALC-DATA',
	            'closeline'=>'  END ADCALC-DATA',
	            'header'=>'*** x -  x     CRRAT       VOL (ac-ft)',
                'uciformat'=>'%5[^\n]%5[^\n]%10f%10f',
                'uciprint'=>'%5s%5s%7.2f%7.2f',
                'parentblock'=>'RCHRES',
                'subblock'=>'ADCALC-DATA'
                ),
          'GQ-GENDATA'=>array(
                'tabledef'=>'create temp table gqgendata (segstart integer, segend integer, ngql integer, tpfg integer,phfg integer,rofg integer,cdfg integer,sdfg integer,pyfg integer,lat float8)',
                'tablename'=>'gqgendata',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'ngql, tpfg, phfg, rofg, cdfg, sdfg, pyfg, lat',
                'paramdefaults'=>'1,2,2,2,2,2,2,0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  GQ-GENDATA',
	            'closeline'=>'  END GQ-GENDATA',
	            'header'=>'*** RCHRES NGQL TPFG PHFG ROFG CdFG SdFG PYFG  LAT',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d%5d%5d%5d',
                'parentblock'=>'RCHRES',
                'subblock'=>'GQ-GENDATA'
                ),
          'GQ-AD-FLAGS'=>array(
                'tabledef'=>'create temp table gqadflags (segstart integer, segend integer, f1 integer,c1 integer,f2 integer,c2 integer,f3 integer,c3 integer)',
                'tablename'=>'gqadflags',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'f1, c1, f2, c2, f3, c3',
                'paramdefaults'=>'0,0,0,0,0,0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  GQ-AD-FLAGS',
	            'closeline'=>'  END GQ-AD-FLAGS',
	            'header'=>'*** x -  x GQUAL1 GQUAL2 GQUAL3',
                'uciformat'=>'%5[^\n]%5[^\n]%4d%3d%4d%3d%4d%3d',
                'uciprint'=>'%5s%5s%4d%3d%4d%3d%4d%3d',
                'parentblock'=>'RCHRES',
                'subblock'=>'GQ-AD-FLAGS'
                ),
          'GQ-QALDATA'=>array(
                'tabledef'=>'create temp table gqqaldata (segstart integer, segend integer, gqid varchar(15), dqal float8, concid varchar(4),conv float8, qtyid varchar(8))',
                'tablename'=>'gqqaldata',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'gqid, dqal, concid, conv, qtyid',
                'paramdefaults'=>'\'FECAL_COLIFORM\',200.0,\'mg\',0.00353,\'qtyid\'',
	            'ordercol'=>'segstart',
                'openline'=>'  GQ-QALDATA',
	            'closeline'=>'  END GQ-QALDATA',
	            'header'=>'*** RCHRES                GQID      DQAL    CONCID      CONV     QTYID',
                'uciformat'=>'%5[^\n]%5[^\n]%20[^\n]%10f%10s%10f%10s',
                'uciprint'=>'%5s%5s%-20s%8.1f      %4s%5.4f%  8s',
                'parentblock'=>'RCHRES',
                'subblock'=>'GQ-QALDATA'
                ),
          'GQ-QALFG'=>array(
                'tabledef'=>'create temp table gqqalfg (segstart integer, segend integer, hdrl integer, oxid integer, phot integer, volt integer, biod integer,  gen integer, sdas integer)',
                'tablename'=>'gqqalfg',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'hdrl, oxid, phot, volt, biod, gen, sdas',
                'paramdefaults'=>'0,0,0,0,0,1,0',
	            'ordercol'=>'segstart',
                'openline'=>'  GQ-QALFG',
	            'closeline'=>'  END GQ-QALFG',
	            'header'=>'*** RCHRES HDRL OXID PHOT VOLT BIOD  GEN SDAS',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d%5d%5d',
                'parentblock'=>'RCHRES',
                'subblock'=>'GQ-QALFG'
                ),
          'GQ-FLG2'=>array(
                'tabledef'=>'create temp table gqflg2 (segstart integer, segend integer, hdrl integer, oxid integer, phot integer, volt integer, biod integer,  gen integer, sbms integer)',
                'tablename'=>'gqflg2',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'hdrl, oxid, phot, volt, biod, gen, sbms',
                'paramdefaults'=>'0,0,0,0,0,0,0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  GQ-FLG2',
	            'closeline'=>'  END GQ-FLG2',
	            'header'=>'*** RCHRES HDRL OXID PHOT VOLT BIOD  GEN SBMS',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d%5d%5d%5d%5d%5d',
                'uciprint'=>'%5s%5s%5d%5d%5d%5d%5d%5d%5d',
                'parentblock'=>'RCHRES',
                'subblock'=>'GQ-FLG2'
                ),
          'GQ-GENDECAY'=>array(
                'tabledef'=>'create temp table gqgendecay (segstart integer, segend integer, fstdec float8, thfst float8)',
                'tablename'=>'gqgendecay',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'fstdec, thfst',
                'paramdefaults'=>'1.15,1.07',
	            'ordercol'=>'segstart',
 	            'openline'=>'  GQ-GENDECAY',
	            'closeline'=>'  END GQ-GENDECAY',
	            'header'=>'*** RCHRES    FSTDEC     THFST',
                'uciformat'=>'%5[^\n]%5[^\n]%10d%10d',
                'uciprint'=>'%5s%5s%7.2f%7.2f',
                'parentblock'=>'RCHRES',
                'subblock'=>'GQ-GENDECAY'
                ),
          'GQ-VALUES'=>array(
                'tabledef'=>'create temp table gqvalues (segstart integer, segend integer, twat float8, phval float8, roc float8, cld float8, sdcnc float8, phy float8)',
                'tablename'=>'gqvalues',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'twat, phval, roc, cld, sdcnc, phy',
                'paramdefaults'=>'60.,7.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  GQ-VALUES',
	            'closeline'=>'  END GQ-VALUES',
	            'header'=>'*** RCHRES      TWAT     PHVAL       ROC       CLD     SDCNC       PHY',
                'uciformat'=>'%5[^\n]%5[^\n]%10f%10f%10f%10f%10f%10f',
                'uciprint'=>'%5s%5s%10f%10f%10f%10f%10f%10f',
                'parentblock'=>'RCHRES',
                'subblock'=>'GQ-VALUES'
                ),
          'HYDR-INIT'=>array(
                'tabledef'=>'create temp table hydrinit (segstart integer, segend integer, ivol float8, c1 float8, c2 float8, c3 float8, c4 float8, c5 float8, o1 float8, o2 float8, o3 float8, o4 float8, o5 float8)',
                'tablename'=>'hydrinit',
                'keytable'=>'rchresgeninfo',
                'paramcolumns'=>'ivol, c1, c2, c3, c4, c5, o1, o2, o3, o4, o5',
                'paramdefaults'=>'0.01,4.0,4.0,4.0,4.0,4.0,1.2,1.2,1.2,1.2,1.2',
	            'ordercol'=>'segstart',
 	            'openline'=>'  HYDR-INIT',
	            'closeline'=>'  END HYDR-INIT',
	            'header'=>'*** RCHRES       VOL  CAT Initial value  of COLIND     initial  value  of OUTDGT',
                'uciformat'=>'%5[^\n]%5[^\n]%10f%10f%5f%5f%5f%5f%10f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%7.2f%7.2f%2.2f%2.2f%2.2f%2.2f%7.2f%2.2f%2.2f%2.2f%2.2f',
                'parentblock'=>'RCHRES',
                'subblock'=>'HYDR-INIT'
                ),
          'MON-GENERIC'=>array(
                'tabledef'=>'create temp table mongeneric (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'mongeneric',
                'keytable'=>'geninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  MON-GENERIC',
	            'closeline'=>'  END MON-GENERIC',
	            'header'=>'',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f'
                ),
          'FTABLES'=>array(
                'tabledef'=>'create temp table ftables (reachid integer, rdepth float8, rarea float8, rvolume float8,q1 float8, q2 float8)',
                'tablename'=>'ftables',
                'keytable'=>'rgeninfo',
                'paramcolumns'=>'reachid,rdepth,rarea,rvolume,q1,q2',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
                'openline'=>'  FTABLES',
	            'closeline'=>'  END FTABLES',
	            'header'=>'',
                'uciformat'=>'%10[^\n]%10[^\n]%10[^\n]%10[^\n]%10[^\n]',
                'uciprint'=>'%7.2f%7.2f%7.2f%7.2f',
                'parentblock'=>'FTABLES',
                'subblock'=>'FTABLE'
                ),
          'MON-UZSN'=>array(
                'tabledef'=>'create temp table monuzsn (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'monuzsn',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  MON-UZSN',
	            'closeline'=>'  END MON-UZSN',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f',
                'parentblock'=>'PERLND',
                'subblock'=>'MON-UZSN'
                ),
          'MON-INTERCEP'=>array(
                'tabledef'=>'create temp table monintercep (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'monintercep',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  MON-INTERCEP',
	            'closeline'=>'  END MON-INTERCEP',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f',
                'parentblock'=>'PERLND',
                'subblock'=>'MON-INTERCEP'
                ),
          'MON-LZETP'=>array(
                'tabledef'=>'create temp table monlzetp (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'monlzetp',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  MON-LZETPARM',
	            'closeline'=>'  END MON-LZETPARM',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f',
                'parentblock'=>'PERLND',
                'subblock'=>'MON-LZETPARM'
                ),
          'MON-LZETPARM'=>array(
                'tabledef'=>'create temp table monlzetp (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'monlzetp',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  MON-LZETPARM',
	            'closeline'=>'  END MON-LZETPARM',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f',
                'parentblock'=>'PERLND',
                'subblock'=>'MON-LZETPARM'
                ),
          'MON-MANNING'=>array(
                'tabledef'=>'create temp table monmanning (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'monmanning',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
                'openline'=>'  MON-MANNING',
	            'closeline'=>'  END MON-MANNING',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f%2.2f',
                'parentblock'=>'PERLND',
                'subblock'=>'MON-MANNING'
                ),
          'PMON-ACCUM'=>array(
                'tabledef'=>'create temp table pmonaccum (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'pmonaccum',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
                'openline'=>'  MON-ACCUM',
	            'closeline'=>'  END MON-ACCUM',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',

                'uciprint'=>'%5s%5s%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0',
                'parentblock'=>'PERLND',
                'subblock'=>'MON-ACCUM'
                ),
          'PMON-SQOLIM'=>array(
                'tabledef'=>'create temp table pmonsqolim (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'pmonsqolim',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  MON-SQOLIM',
	            'closeline'=>'  END MON-SQOLIM',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0',
                'parentblock'=>'PERLND',
                'subblock'=>'MON-SQOLIM'
                ),
          'PMON-IOQC'=>array(
                'tabledef'=>'create temp table pmonioqc (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'pmonioqc',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  MON-IFLW-CONC',
	            'closeline'=>'  END MON-IFLW-CONC',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0',
                'parentblock'=>'PERLND',
                'subblock'=>'MON-IFLW-CONC'
                ),
          'PMON-IFLW-CONC'=>array(
                'tabledef'=>'create temp table pmonioqc (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'pmonioqc',
                'keytable'=>'perlndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  MON-IFLW-CONC',
	            'closeline'=>'  END MON-IFLW-CONC',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0',
                'parentblock'=>'PERLND',
                'subblock'=>'MON-IFLW-CONC'
                ),
          'IMON-ACCUM'=>array(
                'tabledef'=>'create temp table imonaccum (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'imonaccum',
                'keytable'=>'implndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  MON-ACCUM',
	            'closeline'=>'  END MON-ACCUM',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0',
                'parentblock'=>'IMPLND',
                'subblock'=>'MON-ACCUM'
                ),
          'IMON-SQOLIM'=>array(
                'tabledef'=>'create temp table imonsqolim (segstart integer, segend integer, JAN float8,FEB float8,MAR float8,APR float8,MAY float8,JUN float8,JUL float8,AUG float8,SEP float8,OCT float8,NOV float8,DEC float8)',
                'tablename'=>'imonsqolim',
                'keytable'=>'implndgeninfo',
                'paramcolumns'=>'JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC',
                'paramdefaults'=>'0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0',
	            'ordercol'=>'segstart',
 	            'openline'=>'  MON-SQOLIM',
	            'closeline'=>'  END MON-SQOLIM',
	            'header'=>'*** x -  x  JAN  FEB  MAR  APR  MAY  JUN  JUL  AUG  SEP  OCT  NOV  DEC',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%5s%5s%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0%sc0',
                'parentblock'=>'IMPLND',
                'subblock'=>'MON-SQOLIM'
                ),
          'EXT SOURCES'=>array(
                'tabledef'=>'create temp table extsources (wdmid integer, recid integer, elem varchar(6), units varchar(4), defmissing varchar(4), multfactor float8, tstran varchar(4), targetvolume varchar(6), segstart integer, segend integer, targertgroup varchar(8), targetname varchar(6), targetnum1 varchar(2), targetnum2 varchar(2))',
                'tablename'=>'extsources',
                'keytable'=>'extsources',
                'paramcolumns'=>'wdmid, recid, elem, units, defmissing, multfactor, tstran, targetvolume, segstart, segend, targertgroup, targetname, targetnum1, targetnum2',
                'paramdefaults'=>"'WDM1',1,'PREC','ENGL','',1.0,'PERLND',101,101,'EXTNL','PREC','',''",
	            'ordercol'=>'segstart',
 	            'openline'=>'EXT SOURCES',
	            'closeline'=>'END EXT SOURCES',
	            'header'=>'<Name>   x <Name> x tem strg<-factor->strg <Name>   x   x        <Name> x x ***',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%-6s%4d %-6s   %-4s%-4s%5.4f%4s %-6s %3s %3s %-6s %-6s%2s%2s',
                'parentblock'=>'IMPLND',
                'subblock'=>'MON-SQOLIM'
                ),
          'EXT TARGETS'=>array(
                'tabledef'=>'create temp table exttargets (sourcevolume integer, sourceid integer, sourcegroup varchar(6), sourcename varchar(4), memberid1 varchar(2), memberid2 varchar(2), multfactor float8, tstran varchar(4), targetvolume varchar(6), targetid integer, targetname varchar(6), qf varchar(2), units varchar(4), tstran varchar(4), accesstype varchar(4))',
                'tablename'=>'exttargets',
                'keytable'=>'exttargets',
                'paramcolumns'=>'sourcevolume, sourceid, sourcegroup, sourcename, memberid1, memberid2, multfactor, tstran, targetvolume, targetid, targetname, units, tstran, accesstype',
                'paramdefaults'=>"'RCHRES', 1, 'ROFLOW', 'ROVOL', '', '', 1.0, '', 'WDM2', '', 1, 'FLOW', 'ENGL', 'AGGR', 'REPL'",
	            'ordercol'=>'segstart',
 	            'openline'=>'EXT TARGETS',
	            'closeline'=>'END EXT TARGETS',
	            'header'=>'<Name>   x        <Name> x x<-factor->strg <Name>   x <Name>qf  tem strg strg***',
                'uciformat'=>'%5[^\n]%5[^\n]%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f%5f',
                'uciprint'=>'%-6s%4d %-6s %-6s%2s%2s%5.4f%-4s %-6s%4s %-6s%3s%-4s %4s %4s',
                'parentblock'=>'IMPLND',
                'subblock'=>'MON-SQOLIM'
                ),
           'TIMESERIES'=>array(
                'tabledef'=>'create temp table copytimeseries (segstart integer, segend integer, npt integer, nmn integer)',
                'tablename'=>'copytimeseries',
                'keytable'=>'copytimeseries',
                'paramcolumns'=>'npt, nmn',
                'paramdefaults'=>"0,1",
	            'ordercol'=>'segstart',
 	            'openline'=>'  TIMESERIES',
	            'closeline'=>'  END TIMESERIES',
	            'header'=>'*** x -  x  NPT  NMN',
                'uciformat'=>'%5[^\n]%5[^\n]%5d%5d',
                'uciprint'=>'%-5s%-5s%-5s%-5s',
                'parentblock'=>'COPY',
                'subblock'=>''
                )
           );

    ?>